import request from '@/utils/request'

// 情况信息
export function statisticsCondition(query) {
  return request({
    url: '/ord/statistics/condition',
    method: 'get',
    params: query
  })
}

// 订单统计，根据不同板块
export function statisticsOrderIndustry(query) {
  return request({
    url: '/ord/statistics/order/industry',
    method: 'get',
    params: query
  })
}

// 订单统计（按单位） 树状图
export function statisticsOrder(query) {
  return request({
    url: '/ord/statistics/order',
    method: 'get',
    params: query
  })
}

// 板块销售统计
export function statisticsBusiness(query) {
  return request({
    url: '/ord/statistics/business/type',
    method: 'get',
    params: query
  })
}

// 板块销售统计明细
export function statisticsBusinessDetail(query) {
  return request({
    url: '/ord/statistics/business/type/detail',
    method: 'get',
    params: query
  })
}

// 业务销售统计明细
export function statisticsProduct(query) {
  return request({
    url: '/ord/statistics/product',
    method: 'get',
    params: query
  })
}
